<template>
	<view>
		<view class="box">
			<view class="cu-bar bg-white">
				<view class="action border-title">
					<text class="cuIcon-titles text-green"></text>
					<text class="text-xl text-bold">其他供应商价格</text>
				</view>
			</view>
			<view class="cu-list menu sm-border card-menu" v-for="(item, index) in materialList" :key="index">
				<!-- 多行Item -->
				<view class="cu-item" @click="toDetail(item)">
					<view class="content padding-tb-sm">
						<view>
							{{item.name}}
						</view>
					</view>
					<view class="action">
						{{item.price}}
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getMaterialList
	} from '@/api/approve'
	export default {
		data() {
			return {
				id: "",
				materialList: []
			}
		},
		onLoad(option) {
			this.id = option.id
			this.detail()
		},
		methods: {
			// 获取操作历史
			detail() {
				getMaterialList(this.id).then(res => {
					this.materialList = res.item
					// this.dialog = true
				})
			},
		},

	}
</script>

<style>

</style>